﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="Web.Admin.Page_Test.Edit" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.Web.UI" %>
<%@ Import Namespace="System.Web.UI.WebControls" %>

<!DOCTYPE html>

<%="<!--[if IE 8]> <html class=\"ie8 no-js\"> <![endif]-->"%>
<%="<!--[if IE 9]> <html class=\"ie9 no-js\"> <![endif]-->"%>
<%="<!--[if !IE]><!-->"%>
<html>
<%="<!--<![endif]-->"%>
    <!-- BEGIN HEAD -->

    <head>
        <meta charset="utf-8" />
        <title><%=Evan.Common.CommFun.GetAppSetting("AdminTitle") %> - 后台管理系统</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta content="width=device-width, initial-scale=1" name="viewport" />
        <!-- #include file="../include/com_res_css.inc" -->
    </head>
    <!-- END HEAD -->

    <body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white">
        <!-- BEGIN HEADER -->
        
        <!-- #include file="../include/top_bar.inc" -->

        <!-- END HEADER -->
        <!-- BEGIN HEADER & CONTENT DIVIDER -->
        <div class="clearfix"> </div>
        <!-- END HEADER & CONTENT DIVIDER -->
        <!-- BEGIN CONTAINER -->
        <div class="page-container">
            <!-- BEGIN SIDEBAR -->
            
            <!-- #include file="../include/left_menu.inc" -->
            
            <!-- END SIDEBAR -->
            <!-- BEGIN CONTENT -->
            <div class="page-content-wrapper">
                <!-- BEGIN CONTENT BODY -->
                <div class="page-content">
                    <!-- BEGIN PAGE HEADER-->
                    <!-- BEGIN THEME PANEL -->
                    <!-- #include file="../include/theme_panel.inc" -->
                    <h3 class="page-title"> 栏目管理</h3>
                    <!-- END PAGE TITLE-->
                    <!-- END PAGE HEADER-->
                    <!-- BEGIN PAGE CONTENT-->

                                    <div class="portlet light bordered">
                                        <div class="portlet-title tabbable-line">

                                            <ul class="nav nav-tabs ">
                                                <li class="active">
                                                    <a href="#tab_1" data-toggle="tab" aria-expanded="true"> 基本信息 </a>
                                                </li>
                                                <li class="">
                                                    <a href="#tab_2" data-toggle="tab" aria-expanded="false"> SEO信息 </a>
                                                </li>
                                                <li class="">
                                                    <a href="#tab_3" data-toggle="tab" aria-expanded="false"> 模板信息 </a>
                                                </li>
                                            </ul>
                                        
                                            <div class="caption">
                                                <i class="glyphicon glyphicon-list-alt font-red"></i>
                                                <span class="caption-subject font-red bold uppercase">栏目管理</span>
                                            </div>

                                        </div>
                                        <div class="tab-content">

                                            <div class="tab-pane active" id="tab_1">
                                                <div class="form">
                                                    <div class="form-horizontal form-row-seperated">
                                                        <div class="form-body">

                                                            <div class="form-group">
                                                                <label class="control-label col-md-2">字段列表_fieldlist</label>
                                                                <div class="col-md-9">
                                                                    <div class="table-list">
                                                                        <table field_type="list" field="BannerList"  id="Field_BannerList" lay-filter="Field_BannerList" ></table>
                                                                        <div   id="data_BannerList"  class="hide" >
                                                                            [{"title":"我是标题1","desc":"我是简介1","img":"/uploads/20200109013936_054257.jpg","file":"/uploads/20200228055920_387278.jpg"},{"title":"我是标题2","desc":"我是简介2","img":"/uploads/20200109013936_054257.jpg","file":"/uploads/20200228055920_387278.jpg"},{"title":"我是标题3","desc":"我是简介3","img":"/uploads/20200109013936_054257.jpg","file":"/uploads/20200228055920_387278.jpg"},{"title":"我是标题4","desc":"我是简介4","img":"/uploads/20200109013936_054257.jpg","file":"/uploads/20200228055920_387278.jpg"}]
                                                                        </div>
                                                                        <div   id="field_BannerList"  class="hide" >
                                                                            [{"Field":"title","Head":"标题","Type":"input","Tip":"这是字段提示","Default":""},{"Field":"desc","Head":"简介","Type":"textarea","Tip":"这是字段提示","Default":""},{"Field":"img","Head":"图片","Type":"imgupload","Tip":"1366*768","Default":""},{"Field":"file","Head":"附件","Type":"fileupload","Tip":"这是字段提示","Default":""}]
                                                                        </div>
                                                                    </div>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>  


                                                            <div class="form-group">
                                                                <label class="control-label col-md-2">字段列表_fieldlist</label>
                                                                <div class="col-md-9">
                                                                    <div class="table-list">
                                                                        <table field_type="list" field="BannerList2"  id="Field_BannerList2" lay-filter="Field_BannerList2" ></table>
                                                                        <div   id="data_BannerList2"  class="hide" >
                                                                            [{"title":"我是标题","desc":"我是简介","img":"/uploads/20200109013936_054257.jpg"},{"title":"我是标题","desc":"我是简介","img":"/uploads/20200228055920_387278.jpg"},{"title":"我是标题","desc":"我是简介","img":"/uploads/20200228055920_387278.jpg"},{"title":"我是标题","desc":"我是简介","img":"/uploads/20200228055920_387278.jpg"}]
                                                                        </div>
                                                                        <div   id="field_BannerList2"  class="hide" >
                                                                            [{"Field":"title","Head":"标题","Type":"input","Tip":"这是字段提示","Default":""},{"Field":"desc","Head":"简介","Type":"textarea","Tip":"这是字段提示","Default":""},{"Field":"img","Head":"图片","Type":"imgupload","Tip":"1366*768","Default":""}]
                                                                        </div>
                                                                    </div>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div> 



                                                            


                                                            <div class="form-group">
                                                                <label class="control-label col-md-2">编辑器-test</label>
                                                                <div class="col-md-9">
                                                                    
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>  

                                                            <div class="form-group">
                                                                <label class="control-label col-md-2">编辑器</label>
                                                                <div class="col-md-9">
                                                                    <iframe src="index.aspx" style="border:none; width:100%; height:590px;"></iframe>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>  

                                                             <%--<div class="form-group">
                                                                <label class="control-label col-md-2">编辑器2</label>
                                                                <div class="col-md-6">
                                                                    <div field_type="feditor" ></div>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>  --%>


                                                            <div class="form-group">
                                                                <label class="control-label col-md-2">上传文件框2</label>
                                                                <div class="col-md-6">
                                                                    <div class="input-group input-icon left">
                                                                        <input name="filesrc_Title110" placeholder="123"  class="input-error form-control filesrc" type="text" value="" /><i class="fa fa-file" style="color:#555;font-size:14px;"></i>
                                                                        <span class="input-group-addon btn default btn-file">
                                                                            <span class="fileinput-new"> 上传文件 </span>
                                                                            <input type="file" class="Title110" name="fileinput_Title110" field="Title110" field_type="fileupload" />
                                                                        </span> 
                                                                        <a class="input-group-addon btn default fileupload-select" name="fileclear_Title110" data-toggle="modal" style="border-left:1px !important;" href="#uploadpanel">选择已有文件</a> 
                                                                        <a class="input-group-addon btn red fileupload-clear" name="fileclear_Title110">移除</a> 
                                                                        <a href="javascript:;" class="input-group-addon btn File-Upload-Tip File-Upload-Tip-Title110">  </a>
                                                                    </div>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>



                                                            <div class="form-group">
                                                                <label class="control-label col-md-2">上传文件框2</label>
                                                                <div class="col-md-6">
                                                                    <div class="fileinput fileinput-new" data-provides="fileinput">
                                                                        <div class="input-group input-large">
                                                                            <div class="form-control uneditable-input input-fixed input-medium" data-trigger="fileinput">
                                                                                <i class="fa fa-file fileinput-exists"></i>&nbsp;
                                                                                <span class="fileinput-filename"> </span>
                                                                            </div>
                                                                            <span class="input-group-addon btn default btn-file">
                                                                                <span class="fileinput-select"> 选择文件 </span>
                                                                                <span class="fileinput-new"> 上传文件 </span>
                                                                                <span class="fileinput-exists"> 重新选择 </span>
                                                                                <input type="file" name="..."> </span>
                                                                            <a href="javascript:;" class="input-group-addon btn red fileinput-exists" data-dismiss="fileinput"> 移除 </a>
                                                                            <a href="javascript:;" class="input-group-addon btn blue fileinput-exists"> 上传 </a>
                                                                        </div>
                                                                    </div>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>  

                                                            <div class="form-group">
                                                                <label class="control-label col-md-2">上传图片框</label>
                                                                <div class="col-md-6">
                                                                    <div class="fileinput fileinput-new" data-provides="fileinput" style="width:100%">
                                                                        <div class="fileinput fileinput-new" data-provides="fileinput" style="width:100%">
                                                                            <div class="fileinput-new thumbnail" style="width: 200px; height: 150px; background-color: #EEEEEE;">
                                                                                <img src="" alt="" /> 
                                                                            </div>
                                                                            <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; height: auto;"> </div>

                                                                            <div style="margin-bottom:5px" class=""> <input type="text" style="padding: 6px 12px;" class="form-control" placeholder="请输入标题"> </div>
                                                                            
                                                                            <div>
                                                                                <span class="btn default btn-file">
                                                                                    <span class="fileinput-new"> 选择图片 </span>
                                                                                    <span class="fileinput-exists"> 更改 </span>
                                                                                    <input type="file" name="..."> </span>
                                                                                <a href="javascript:;" class="btn red fileinput-exists" data-dismiss="fileinput"> 移除 </a>
                                                                                <a href="javascript:;" class="btn blue fileinput-exists"> 上传 </a>
                                                                            </div>
                                                                        </div>
                                                                        
                                                                    </div>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div> 

                                                           <%-- <div class="form-group">
                                                                <label class="control-label col-md-3">普通文本框</label>
                                                                <div class="col-md-5">
                                                                    <input type="text" class="form-control" placeholder="请输入标题">
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>   

                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">普通密码框</label>
                                                                <div class="col-md-5">
                                                                    <input type="password" class="form-control" placeholder="请输入密码">
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>   --%>

                                                            


                                                            <% 
                                                                Dictionary<string, string> aa = new Dictionary<string, string>();
                                                                aa.Add("01", "第1项");
                                                                aa.Add("02", "第2项");
                                                                aa.Add("03", "第3项");
                                                                aa.Add("04", "第4项");
                                                                aa.Add("05", "第5项");
                                                                aa.Add("06", "第6项");
                                                                aa.Add("07", "第7项");
                                                                aa.Add("08", "第8项");
                                                                aa.Add("09", "第9项");
                                                                aa.Add("10", "第10项");
                                                            %>
                                                            <% 
                                                                Evan.Model.SysModel.HtmlHelperModel m1 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试1", PlaceHoder = "测试222", Notice = "帮7助信息", FieldName="Title1", FieldVerify="notnull", MaxLength=25, FieldType="input", SelectItem=aa  };
                                                                Evan.Model.SysModel.HtmlHelperModel m2 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试2", PlaceHoder = "测试222", Notice = "帮6助信息", FieldName = "Title2", FieldVerify = "notnull", MaxLength = 25, FieldType = "password", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m3 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试3", PlaceHoder = "测试222", Notice = "帮h助5信息", FieldName = "Title3", FieldVerify = "notnull", MaxLength = 25, FieldType = "textarea", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m4 = new Evan.Model.SysModel.HtmlHelperModel { Title = "编辑器", PlaceHoder = "测试222", Notice = "帮h助4信息", FieldName = "Title4", FieldVerify = "notnull", MaxLength = 25, FieldType = "editor", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m5 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试5", PlaceHoder = "测试222", Notice = "帮助g信息", FieldName = "Title5", FieldVerify = "notnull", MaxLength = 25, FieldType = "radio", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m6 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试6", PlaceHoder = "测试222", Notice = "帮助d3信息", FieldName = "Title6", FieldVerify = "notnull", MaxLength = 25, FieldType = "checkbox", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m7 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试7", PlaceHoder = "测试222", Notice = "帮助fg信息", FieldName = "Title7", FieldVerify = "notnull", MaxLength = 25, FieldType = "select", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m8 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试8", PlaceHoder = "测试222", Notice = "帮助f信息", FieldName = "Title8", FieldVerify = "notnull", MaxLength = 25, FieldType = "multipleselect", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m9 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试9", PlaceHoder = "测试222", Notice = "帮助u2信息", FieldName = "Title9", FieldVerify = "notnull", MaxLength = 25, FieldType = "fileupload", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m10 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试10", PlaceHoder = "测试222", Notice = "帮助2信息", FieldName = "Title10", FieldVerify = "notnull", MaxLength = 25, FieldType = "imgupload", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m11 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试11", PlaceHoder = "测试222", Notice = "帮助v信息", FieldName = "Title11", FieldVerify = "notnull", MaxLength = 25, FieldType = "multipleimgupload", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m12 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试12", PlaceHoder = "测试222", Notice = "帮c助信息", FieldName = "Title12", FieldVerify = "notnull", MaxLength = 25, FieldType = "input", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m13 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试13", PlaceHoder = "测试222", Notice = "帮v助n信息", FieldName = "Title13", FieldVerify = "notnull", MaxLength = 25, FieldType = "input", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m14 = new Evan.Model.SysModel.HtmlHelperModel { Title = "测试14", PlaceHoder = "测试222", Notice = "帮助信b息", FieldName = "Title14", FieldVerify = "notnull", MaxLength = 25, FieldType = "input", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m15 = new Evan.Model.SysModel.HtmlHelperModel { Title = "时间选择", PlaceHoder = "测试222", Notice = "帮助信b息", FieldName = "Title15", FieldVerify = "notnull", MaxLength = 0, FieldType = "time", SelectItem = aa };
                                                                Evan.Model.SysModel.HtmlHelperModel m16 = new Evan.Model.SysModel.HtmlHelperModel { Title = "开关", PlaceHoder = "测试开关", Notice = "帮助信b息", FieldName = "Title16", FieldVerify = "notnull", MaxLength = 0, FieldType = "switch", SelectItem = aa }; 
                                                            %>

                                                            <% List<Evan.Model.SysModel.HtmlHelperModel> mm = new List<Evan.Model.SysModel.HtmlHelperModel> ();
                                                               mm.Add(m1);
                                                               mm.Add(m2);
                                                               mm.Add(m3);
                                                               mm.Add(m4);
                                                               mm.Add(m5);
                                                               mm.Add(m6);
                                                               mm.Add(m7);

                                                               mm.Add(m8);
                                                               mm.Add(m9);
                                                               mm.Add(m10);
                                                               mm.Add(m11);
                                                               mm.Add(m12);
                                                               mm.Add(m13);
                                                               mm.Add(m14);
                                                               mm.Add(m15);
                                                               mm.Add(m16);
                                                                %>

                                                            <% foreach (Evan.Model.SysModel.HtmlHelperModel item in mm)
                                                               {
                                                                   //Response.Write(Evan.Common.HtmlHelper.Input(item));
                                                                   Response.Write(Evan.Common.HtmlHelper.HtmlBuild(item));
                                                               }
                                                            %>

                                                            <%--<div class="form-group">
                                                                <label class="control-label col-md-3">普通文本框(带有输入字数限制)</label>
                                                                <div class="col-md-5">
                                                                    <input type="text" class="form-control maxlength_defaultconfig" maxlength="40"  placeholder="请输入标题">     
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>  
                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">普通文本框(带有输入字数限制)</label>
                                                                <div class="col-md-5">
                                                                    <input type="text" class="form-control maxlength_defaultconfig" maxlength="40" placeholder="请输入标题">     
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>  
                                                            <div class="form-group has-error  ">
                                                                <label class="control-label col-md-3">普通文本框</label>
                                                                <div class="col-md-5">
                                                                    <input type="text" class="form-control" placeholder="请输入标题">
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>    
                                                            
                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">文本域</label>
                                                                <div class="col-md-5">
                                                                    <textarea id="Textarea1" class="form-control" rows="5" placeholder="普通文本域" ></textarea>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>  

                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">文本域(带有输入字数限制)</label>
                                                                <div class="col-md-5">
                                                                    <textarea id="maxlength_textarea1" class="form-control" maxlength="225" rows="5" placeholder="最多输入255个字符" ></textarea>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>  
                                                            

                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">单选</label>
                                                                <div class="col-md-5">
                                                                    <div class="mt-radio-inline">
                                                                        <label class="mt-radio mt-radio-outline">
                                                                            <input type="radio" name="optionsRadios" id="optionsRadios4" value="option1" checked> Option 1
                                                                            <span></span>
                                                                        </label>
                                                                        <label class="mt-radio mt-radio-outline">
                                                                            <input type="radio" name="optionsRadios" id="optionsRadios5" value="option2"> Option 2
                                                                            <span></span>
                                                                        </label>
                                                                        <label class="mt-radio mt-radio-outline">
                                                                            <input type="radio" name="optionsRadios" id="optionsRadios6" value="option3" disabled> Disabled
                                                                            <span></span>
                                                                        </label>
                                                                    </div>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>
                                                            
                                                
                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">多选</label>
                                                                <div class="col-md-5">
                                                                    <div class="mt-checkbox-inline">
                                                                    <label class="mt-checkbox mt-checkbox-outline">
                                                                        <input type="checkbox" id="inlineCheckbox1" value="option1"> Checkbox 1
                                                                        <span></span>
                                                                    </label>
                                                                    <label class="mt-checkbox mt-checkbox-outline">
                                                                        <input type="checkbox" id="inlineCheckbox2" value="option2"> Checkbox 2
                                                                        <span></span>
                                                                    </label>
                                                                    <label class="mt-checkbox mt-checkbox-outline mt-checkbox-disabled">
                                                                        <input type="checkbox" id="inlineCheckbox3" value="option3" disabled> Disabled
                                                                        <span></span>
                                                                    </label>
                                                                </div>

                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>
                                                            
                                                           

                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">下拉框</label>
                                                                <div class="col-md-5">
                                                                    <div class="select2-bootstrap-prepend">
                                                                        <select id="single-prepend-text" class="form-control select2 select2-allow-clear">
                                                                            <option></option>
                                                                            <option value="1">不好玩</option>
                                                                            <option value="2">好玩</option>
                                                                            <option value="3">C</option>
                                                                        </select>
                                                                    </div>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>

                                                            <div class="form-group has-error">
                                                                <label class="control-label col-md-3">下拉框多选</label>
                                                                <div class="col-md-5">
                                                                    <div class="select2-bootstrap-prepend">
                                                                        <select id="multiple-prepend-text" class="form-control select2" multiple>
                                                                            <option></option>
                                                                            <option selected value="1">不好玩</option>
                                                                            <option value="2">好玩</option>
                                                                            <option value="3">C</option>
                                                                        </select>
                                                                    </div>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>
                                                            

                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">上传文件框</label>
                                                                <div class="col-md-5">
                                                                    <div class="fileinput fileinput-new" data-provides="fileinput">
                                                                        <div class="input-group input-large">
                                                                            <div class="form-control uneditable-input input-fixed input-medium" data-trigger="fileinput">
                                                                                <i class="fa fa-file fileinput-exists"></i>&nbsp;
                                                                                <span class="fileinput-filename"> </span>
                                                                            </div>
                                                                            <span class="input-group-addon btn default btn-file">
                                                                                <span class="fileinput-new"> 选择文件 </span>
                                                                                <span class="fileinput-exists"> 重新选择 </span>
                                                                                <input type="file" name="..."> </span>
                                                                            <a href="javascript:;" class="input-group-addon btn red fileinput-exists" data-dismiss="fileinput"> 移除 </a>
                                                                            <a href="javascript:;" class="input-group-addon btn blue fileinput-exists"> 上传 </a>
                                                                        </div>
                                                                    </div>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>  
                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">上传文件框2</label>
                                                                <div class="col-md-5">
                                                                    <div class="fileinput fileinput-new" data-provides="fileinput">
                                                                        <div class="input-group input-large">
                                                                            <div class="form-control uneditable-input input-fixed input-medium" data-trigger="fileinput">
                                                                                <i class="fa fa-file fileinput-exists"></i>&nbsp;
                                                                                <span class="fileinput-filename"> </span>
                                                                            </div>
                                                                            <span class="input-group-addon btn default btn-file">
                                                                                <span class="fileinput-new"> 选择文件 </span>
                                                                                <span class="fileinput-exists"> 重新选择 </span>
                                                                                <input type="file" name="..."> </span>
                                                                            <a href="javascript:;" class="input-group-addon btn red fileinput-exists" data-dismiss="fileinput"> 移除 </a>
                                                                            <a href="javascript:;" class="input-group-addon btn blue fileinput-exists"> 上传 </a>
                                                                        </div>
                                                                    </div>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>  
                                                            

                                                            <div class="form-group">
                                                                <label class="control-label col-md-3">上传图片框</label>
                                                                <div class="col-md-5">
                                                                    <div class="fileinput fileinput-new" data-provides="fileinput">
                                                                        <div class="fileinput fileinput-new" data-provides="fileinput">
                                                                            <div class="fileinput-new thumbnail" style="width: 200px; height: 150px;">
                                                                                <img src="" alt="" /> 
                                                                            </div>
                                                                            <div class="fileinput-preview fileinput-exists thumbnail" style="max-width: 200px; height: auto;"> </div>
                                                                            <div>
                                                                                <span class="btn default btn-file">
                                                                                    <span class="fileinput-new"> 选择图片 </span>
                                                                                    <span class="fileinput-exists"> 更改 </span>
                                                                                    <input type="file" name="..."> </span>
                                                                                <a href="javascript:;" class="btn red fileinput-exists" data-dismiss="fileinput"> 移除 </a>
                                                                                <a href="javascript:;" class="btn blue fileinput-exists"> 上传 </a>
                                                                            </div>
                                                                        </div>
                                                                        
                                                                    </div>
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div> 



                                                            <div class="form-group">
                                                                <label class="control-label col-md-2">开关按钮</label>
                                                                <div class="col-md-6">
                                                                    <input  type="checkbox" class="make-switch"  data-on-color="primary" data-off-color="default" data-on-text="&nbsp;推荐&nbsp;" data-off-text="&nbsp;推荐&nbsp;" >
                                                                    <span class="help-block">提示信息</span>
                                                                </div>
                                                            </div>  
                                                             --%>
                                                                
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="tab-pane" id="tab_2">
                                                <p> Howdy, I'm in Section 2. </p>
                                                <p> Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie
                                                    consequat. Ut wisi enim ad minim veniam, quis nostrud exerci tation. </p>
                                                <p>
                                                    <a class="btn green" href="ui_tabs_accordions_navs.html#tab_15_2" target="_blank"> Activate this tab via URL </a>
                                                </p>
                                            </div>
                                            <div class="tab-pane" id="tab_3">
                                                <p> Howdy, I'm in Section 3. </p>
                                                <p> Duis autem vel eum iriure dolor in hendrerit in vulputate. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum
                                                    iriure dolor in hendrerit in vulputate velit esse molestie consequat </p>
                                                <p>
                                                    <a class="btn yellow" href="ui_tabs_accordions_navs.html#tab_15_3" target="_blank"> Activate this tab via URL </a>
                                                </p>
                                            </div>

                                        </div>


                                        <div class="form-actions form-submit-row">
                                            <div class="form-group">
                                                <label class="control-label col-md-2"></label>
                                                <div class="col-md-6">
                                                    <button type="button" class="btn green"><i class="fa fa-check"></i> Submit</button>
                                                    <button type="button" class="btn default">Cancel</button>
                                                </div>
                                            </div>  
                                            <div class="clear"></div>
                                        </div>

                                    </div>

                    
                    <!-- END PAGE CONTENT-->
                </div>
                <!-- END CONTENT BODY -->
            </div>
            <!-- END CONTENT -->
            
        </div>

        <div class="modal fade bs-modal-lg" id="uploadpanel" tabindex="-1" role="dialog" aria-hidden="true">
            <div class="modal-dialog modal-lg">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                        <h4 class="modal-title">选择文件</h4>
                    </div>
                    <div class="modal-body"> 
                        <form id="fileupload" enctype="multipart/form-data">
                            <div class="row fileupload-buttonbar">
                                <div class="col-lg-7">
                                    <!-- The fileinput-button span is used to style the file input field as button -->
                                    <span class="btn green fileinput-button" style="position: relative;overflow: hidden;display: inline-block;">
                                        <i class="fa fa-plus"></i>
                                        <span>上传文件 </span>
                                        <input type="file" id="addFiles" accept=".jpg,.jpeg,.bmp,.png,.gif,.txt,.doc,.docx,.ini,.conf,.eml,.xlsx,.xls,.pdf,.ipk,.apk,.mp4" style="position: absolute;top: 0;right: 0;margin: 0;opacity: 0;-ms-filter: 'alpha(opacity=0)';font-size: 200px;direction: ltr;cursor: pointer;">
                                    </span>
                                    <button type="button" class="btn warning cancel dialog-filemanager-home">
                                        <i class="fa fa-home"></i>
                                        <span> 主目录 </span>
                                    </button>
                                    <button type="button" class="btn warning cancel dialog-filemanager-up">
                                        <i class="fa fa-arrow-up"></i>
                                        <span> 上一级 </span>
                                    </button>
                                    <button type="button" class="btn warning cancel dialog-filemanager-refresh">
                                        <i class="fa fa-refresh"></i>
                                        <span> 刷新 </span>
                                    </button>
                                    <button type="button" class="btn warning cancel dialog-filemanager-go">
                                        <i class="fa fa-file-text"></i>
                                        <span> 去文件管理 </span>
                                    </button>
                                </div>
                            </div>
                            <table role="presentation" class="table table-striped table-hover clearfix" style="margin-top:20px">
                                <tbody class="files" >

                                </tbody>
                            </table>

                            <style type="text/css">
                                .filelists { width:160px;height:205px; float:left; margin-right:13px; cursor:default; }
                                .filecont { width:158px; height:158px; display:table-cell; text-align:center;vertical-align: middle;  color:#3d4957; font-size:40px; }
                                .filetitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;padding:0px 10px 10px 10px; text-align:center; }
                                .file-contain { border:1px solid #eee;text-align:center; }
                                .file-contain.select { border:1px solid #ed6b75  !important;text-align:center; background-color:#ed6b75  !important; color:#ffffff !important; }
                                .file-contain.select .filecont { color:#ffffff !important; }
                                .file-contain:hover { border:1px solid #cfd5de;text-align:center; background-color:#cfd5de; color:#212121;  }
                                .noselect { moz-user-select: -moz-none; -moz-user-select: none; -o-user-select:none; -khtml-user-select:none; -webkit-user-select:none; -ms-user-select:none; user-select:none; }

                                .fileinput-button {position: relative;overflow: hidden;display: inline-block;}
                                .fileinput-button input {position: absolute;top: 0;right: 0;margin: 0;opacity: 0;-ms-filter: 'alpha(opacity=0)';font-size: 200px;direction: ltr;cursor: pointer;}
                                /* Fixes for IE < 8 */
                                @media screen\9 {
                                   .fileinput-button input {filter: alpha(opacity=0);font-size: 100%;height: 100%;}
                                }
                                .files .template-download .filename {
                                    width:300px; overflow:hidden;
                                }
                                .files .template-download .filelength {
                                    width: 150px;
                                    text-align: center;
                                }
                                .files .template-download .progress {
                                    height: 10px;
                                    margin-bottom: 0px;
                                    margin-top: 5px;
                                }
                                .files .template-download .notices span {
                                    color: #e7505a;
                                }
                                .files tr:last-child {
                                    border-bottom: 1px solid #e6e6e6;
                                }
                            </style>

                            <div class="filelist-tab-content noselect" onselect="javascript:return false;">
                                <%--<div class="filelists" data-path="/uploads/20190830043748_983831.jpg" data-dir="\uploads" data-filename="20190830043748_983831.jpg" data-suffix=".jpg" data-type="File">
                                    <div class="file-contain tooltips" data-original-title="20190830043748_983831.jpg">
                                        <div class="filecont" >
                                            <div class="file-image-o" data-imgurl="/uploads/20190830043748_983831.jpg">
                                                <canvas width="158" height="145"></canvas>
                                                <img src="/uploads/20190830043748_983831.jpg"  width="100" height="100" />
                                            </div>
                                        </div>
                                        <div class="filetitle" title="20190830043748_983831.jpg">20190830043748_983831.jpg </div>
                                    </div>
                                </div>
                                <div style="clear:both"></div>--%>
                            </div>
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn green " data-dismiss="modal">关闭</button>
                    </div>
                </div>
            </div>
        </div>


        <!-- END CONTAINER -->
        <!-- #include file="../include/footer.inc" -->
        <!-- #include file="../include/com_res_js.inc" -->
    </body>

    

     <script  type="text/javascript">
         //$('.make-switch').bootstrapSwitch({
         //    onSwitchChange: function (event, state) {
         //        if (state == true) {
         //            alert(1);
         //        } else {
         //            alert(2);
         //        }
         //    }
         //});




         //InitFeditorIFrameFull($("[field_type='feditor']"));
         
         //$("[field_type='feditor']").css("display", "");

         //追加文件



         
         
  </script>




</html>
